#ifndef REGISTERDIALOG_H
#define REGISTERDIALOG_H

#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QFormLayout>
#include "sqloperator.h"

class registerdialog
{
public:
    registerdialog();
};

class RegisterDialog : public QDialog
{
    Q_OBJECT

public:
    RegisterDialog(QWidget *parent = nullptr, SqlOperator *sqlOperator = nullptr);
    ~RegisterDialog();

private slots:
    void onRegisterClicked();
    void onCancelClicked();

private:
    void setupUI();
    QLineEdit *m_user_nameEdit;
    QLineEdit *m_usernameEdit;
    QLineEdit *m_passwordEdit;
    QLineEdit *m_confirmEdit;
    QPushButton *m_registerBtn;
    QPushButton *m_cancelBtn;
    SqlOperator *m_sqlOperator;
};

#endif // REGISTER_DIALOG_H

